# -*- coding: utf-8 -*-

from TasksProvider import TasksProvider

if __name__ == "__main__":
    tasks_to_run  = ['OwaMailNotyficationClientTask']
    input_data    = {
                     'auth': {'owa_url':'OWAurl',
                              'login':'user',
                              'pass': 'pass'},
                     'test_msg': [{'title': 'title test1111',
                                 'message': 'msg test 1111111',
                                 'app_name': 'app name 1',
                                 'app_sub_name': 'v1'},
                                 {'title': 'title test22222',
                                 'message': 'msg test 2222222',
                                 'app_name': 'app name 2',
                                 'app_sub_name': 'v2'}]}
    outputed_data = None

    print input_data

    tasks_provider = TasksProvider()
    tasks_provider.plugin_set_verbose(True)
    tasks_provider.task_set_verbose(False)

    outputed_data = tasks_provider.run_tasks(tasks_to_run, input_data)

    print outputed_data
